using System.IO;

namespace BuildBox.Core.Extensions
{
    public static class StreamExtensions
    {
        public static byte[] ReadData(this Stream target)
        {
            byte[] buffer = new byte[target.Length];
            target.Read(buffer, 0, (int)target.Length);
            return buffer;
        }
    }
}